<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page pageEncoding="UTF-8"%>
<fmt:setLocale value="ja-JP" />

<script type="text/javascript">
$(function(){setListControl("ul.itemList li");});
</script>
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/ja_JP/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script type="text/javascript">
  window.___gcfg = {lang: 'ja'};

  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>

<div class="top">
	<div class="greeting">
	どういうわけか、偉そうに、本や映像作品、音楽、ゲームに１００点満点の点数をつけてしまいます。<br/>
	</div>
	<div class="share" >
		<div class="g-po-outer"><div class="g-plusone" data-size="small"></div></div>
		<div class="fb-like" data-send="false" data-layout="button_count" data-width="100" data-show-faces="true"></div>
		<a href="https://twitter.com/share" class="twitter-share-button" data-lang="ja">ツイート</a>
		<a style="margin-right:15px;position: relative; top: -1px;" href="#" onclick="Evernote.doClip({contentId:'main_section'}); return false;"><img src="http://static.evernote.com/article-clipper.png" alt="Clip to Evernote" /></a>
		<a href="http://b.hatena.ne.jp/entry/" class="hatena-bookmark-button" data-hatena-bookmark-layout="standard" title="このエントリーをはてなブックマークに追加"><img src="http://b.st-hatena.com/images/entry-button/button-only.gif" alt="このエントリーをはてなブックマークに追加" width="20" height="20" style="border: none;" /></a><script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>
	</div>
	<nav>
		<h1>What's new</h1>
		<div style="position:relative;">
			<c:if test="${! isMobile }">
			<div style="width:300px; height:250px; float:right; background-color: white; margin-right: 10px;"></div>
			</c:if>
			<ul class="itemList">
			<c:forEach var="review" items="${newReviews}">
				<li class="${review.productGroup}">
					<c:if test="${! empty review.smallImageUrl}">
					<img src="${review.smallImageUrl}"/>
					</c:if>
					<span>
					<span class="icon"></span>
					<fmt:formatDate value="${review.reviewDate}" pattern="yyyy/MM/dd" timeZone="JST"/> 
				<br/><span class="star"><span class="star${review.numberOfStars}"></span></span>
				<span class="score">(${review.score}点)</span><br/><br/>
				</span>
				<a href="/review/${review.itemId}">${review.reviewTitle}</a>
				</li>
			</c:forEach>
			</ul>
			<div class="more"><a href="/all/1">more &gt;&gt;</a></div>
			
			<c:if test="${! isMobile}">
			<div style="width:300px; position:absolute; right:10px; top:0;">
				<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
				<!-- 300x250, IT Penguin -->
				<ins class="adsbygoogle"
				     style="display:inline-block;width:300px;height:250px"
				     data-ad-client="ca-pub-2855357403949640"
				     data-ad-slot="9162065787"></ins>
				<script>
				(adsbygoogle = window.adsbygoogle || []).push({});
				</script>
			</div>
			</c:if>
		</div>
	</nav>
<c:if test="${isMobile }">
<div style="margin:0 auto 1em; width:320px; height:50px;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2855357403949640";
/* for Mobile */
google_ad_slot = "7833433879";
google_ad_width = 320;
google_ad_height = 50;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</c:if>
	<nav>
		<h1>Ranking (in the last year)</h1>
		<p style="color:#015b9a; margin:0;">直近1年間にレビューした作品のランキング（発売日は関係ありません） </p>
		<div style="position:relative;">
			<ul class="itemList">
			<c:forEach var="review" items="${ranking}" varStatus="status">
				<li class="${review.productGroup}">
					<c:if test="${! empty review.smallImageUrl}">
					<img src="${review.smallImageUrl}"/>
					</c:if>
					<span>
					<span class="icon">${status.count}</span>
					<fmt:formatDate value="${review.reviewDate}" pattern="yyyy/MM/dd" timeZone="JST"/> 
				<br/><span class="star"><span class="star${review.numberOfStars}"></span></span><span class="score">(${review.score}点)</span><br/><br/>
				</span>
				<a href="/review/${review.itemId}">${review.reviewTitle}</a>
				</li>
			</c:forEach>
			</ul>
			<div class="more"><a href="/rank/0/1">more &gt;&gt;</a></div>
		</div>
	</nav>
</div>
<c:if test="${! isMobile }">
<div style="text-align:center; margin:1.5em 0 1.5em;">
<script type="text/javascript"><!--
amazon_ad_tag = "hiroatsu-22"; amazon_ad_width = "600"; amazon_ad_height = "520"; amazon_ad_link_target = "new"; amazon_ad_discount = "remove";//--></script>
<script type="text/javascript" src="http://www.assoc-amazon.jp/s/ads.js"></script>
</div>
</c:if>
<c:if test="${isMobile}">
<div style="font-size: 80%; padding: 0em 0.4em;">本サイト上で表示されるコンテンツの一部は、アマゾンジャパン株式会社またはその関連会社により提供されたものです。<br/>
かかるコンテンツは、お客様に「現状有姿」で提供されており、随時変更または削除される場合があります。</div></c:if>

<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<script type="text/javascript" src="http://static.evernote.com/noteit.js"></script>

